﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Infrastructure.Access
{
   public  class AccessConn
    {
        static string conn = "";
        public static string ConnectionString
        {
            get
            {
                if (conn == "")
                {
                    conn = ConfigurationManager.AppSettings["AccessPath"].ToString();
                }
                return conn;
            }
        }
        static string sensorID = "";
        public static string SENSORIDString
        {
            get
            {
                if (sensorID == "")
                {
                    sensorID = ConfigurationManager.AppSettings["SENSORID"].ToString();
                }
                return sensorID;
            }
        }
        static string sn = "";
        public static string SNString
        {
            get
            {
                if (sn == "")
                {
                    sn = ConfigurationManager.AppSettings["SN"].ToString();
                }
                return sn;
            }
        }
    }
}
